package mi.payment.settings;

import java.io.Serializable;

import mi.payment.constants.Configs;

/**
 * 安全密码设置
 *
 * @author sunmi on 2017/2/16.
 */
public class SecurityPasswordSettings implements Serializable {

    // 文件无变化
    private static final long serialVersionUID = -6086265275572345735L;

    public static final String SECURITY_PASSWORD_CACHE_KEY = "SECURITY_PASSWORD_CACHE_KEY";


    private String securityPassword;        // 安全密码

    public String getSecurityPassword() {
        if (securityPassword == null || securityPassword.length() == 0) {
            return Configs.defaultSafeCode;
        }
        return securityPassword;
    }

    public void setSecurityPassword(String securityPassword) {
        this.securityPassword = securityPassword;
    }

}
